#include "Brush.h"
#include "HelloWorldScene.h"
#include "BaseBadPoint.h"
#include "Tool.h"

Brush::Brush(void)
{
}

Brush::~Brush(void)
{
	pTool->autorelease();
}

Brush::Brush(CCLayer* helloWorld, std::vector<BaseTooth*> pTwTooth){
	    pTool = new Tool(pTwTooth);
		pTool->touchEndedX = 145;
		pTool->touchEndedY = 66;
    
        pTool->relativeX = 0;
        pTool->relativeY = 0;
    
        pTool->initWithTexture(CCTextureCache::sharedTextureCache()->addImage("yy_tool_5.png"));
        pTool->setPosition(ccp(527,188));
	    pTool->setZOrder(5);
		helloWorld->addChild(pTool);
		pTool->fixKind = BaseBadPoint::DIRTY;
}